package model

type student struct {
	name  string
	score float64
}

func (s *student) Score() float64 {
	return s.score
}

func (s *student) SetScore(score float64) {
	s.score = score
}

func (s *student) Name() string {
	return s.name
}

func (s *student) SetName(name string) {
	s.name = name
}

func NewStudent(Name string, s float64) *student {
	return &student{
		name:  Name,
		score: s,
	}
}
